14. SIM related Commands > 14.2 AT+CSIM   Generic SIM Access

14.2
AT+CSIM   Generic SIM Access
AT+CSIM allows direct control of the SIM.
Compared to Restricted SIM Access command AT+CRSM, the definition of AT+CSIM allows the ME to take more control over the SIM interface.
For parameter and SIM result coding please refer GSM 11.11 [26].
However, only the following SIM commands are supported by AT+CSIM: SELECT, STATUS, READ BINARY, UPDATE BINARY, READ RECORD, UPDATE RECORD, SEEK, INCREASE and GET RESPONSE.

The SIM interface design requires that some actions need more than one command, e.g. access to an Elemen­tary File's data requires a prior SELECT command. To ensure that two commands related to the same action are sent to the SIM consecutively, i.e. without being interrupted by other software entities, each SELECT command will be buffered in an internal directory path. Before performing new commands the internal directory path will be checked to enable the retransmittion of the buffered SELECT command's (explicit selection).
The directory path can be used to queue up to 20 Files e.g. 19 Dedicated Files (DF's) and 1 Elementary File (EF).
After each AT+CSIM execution the Master File (MF) which acts as a logical root will be selected to guarantee that other software entities are not affected.
Syntax
Test Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 
GSM 07.07

Parameter Description
 
Length of <command> or <response> string.
 
Command passed on by the ME to the SIM.
 
Response data of the command returned by the SIM.


Example

The following examples explain how to use AT+CSIM.